package com.zjhb.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import com.zjhb.common.controller.ExcelIgnore;
import com.zjhb.common.util.StringMyUtil;

@javax.persistence.Entity
@javax.persistence.Table(name = "patrol", schema = "army", catalog = "")
public class PatrolEntity {
	@ExcelIgnore
	private String id;
	private String name;
	@ExcelIgnore
	private String departId;

	private String departName;
	@ExcelIgnore
	private String areaId;
	
	private String areaName;
	@ExcelIgnore
	private String createTime;
	@ExcelIgnore
	private String createUser;
	@ExcelIgnore
	private String status;
	private String chargeUser;
	private String patrolUser;
	private String phone;
	private String place;
	private String info;
	@ExcelIgnore
	private List<String> wjIds;
	@ExcelIgnore
	private List<FileEntity> files;
	
	
	@javax.persistence.Basic
	@javax.persistence.Column(name = "info")
	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	@Transient
	public List<FileEntity> getFiles() {
		return files;
	}

	public void setFiles(List<FileEntity> files) {
		this.files = files;
	}

	@Transient
	public List<String> getWjIds() {
		return wjIds;
	}

	public void setWjIds(List<String> wjIds) {
		this.wjIds = wjIds;
	}

	@javax.persistence.Basic
	@javax.persistence.Column(name = "place")
	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	@javax.persistence.Basic
	@javax.persistence.Column(name = "charge_user")
	public String getChargeUser() {
		return chargeUser;
	}

	public void setChargeUser(String chargeUser) {
		this.chargeUser = chargeUser;
	}

	@javax.persistence.Basic
	@javax.persistence.Column(name = "patrol_user")
	public String getPatrolUser() {
		return patrolUser;
	}

	public void setPatrolUser(String patrolUser) {
		this.patrolUser = patrolUser;
	}

	@javax.persistence.Basic
	@javax.persistence.Column(name = "phone")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@javax.persistence.Basic
	@javax.persistence.Column(name = "status")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Transient
	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Column(name = "ID")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@javax.persistence.Basic
	@javax.persistence.Column(name = "name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@javax.persistence.Basic
	@javax.persistence.Column(name = "depart_id")
	public String getDepartId() {
		return departId;
	}

	public void setDepartId(String departId) {
		this.departId = departId;
	}

	@javax.persistence.Basic
	@javax.persistence.Column(name = "depart_name")
	public String getDepartName() {
		return departName;
	}

	public void setDepartName(String departName) {
		this.departName = departName;
	}

	@javax.persistence.Basic
	@javax.persistence.Column(name = "area_id")
	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	@javax.persistence.Basic
	@javax.persistence.Column(name = "create_time")
	public String getCreateTime() {
		return StringMyUtil.dateTimeSplit(createTime);
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	@javax.persistence.Basic
	@javax.persistence.Column(name = "create_user")
	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

}
